const mixin = {
	data() {
		return {
			isMobile: '',
			isDevice: ''
		}
	},
	created() {
		const userAgent = navigator.userAgent
		var mobileAgents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
		this.isMobile = mobileAgents.find(item => userAgent.includes(item))
		this.isDevice = localStorage.getItem('terminal')
	},
	methods: {}
}

export default mixin;
